﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200107F RID: 4223
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournTakeExpRewardScRsp : IMessage<RogueTournTakeExpRewardScRsp>, IMessage, IEquatable<RogueTournTakeExpRewardScRsp>, IDeepCloneable<RogueTournTakeExpRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003540 RID: 13632
		// (get) Token: 0x0600BC87 RID: 48263 RVA: 0x001FC087 File Offset: 0x001FA287
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournTakeExpRewardScRsp> Parser
		{
			get
			{
				return RogueTournTakeExpRewardScRsp._parser;
			}
		}

		// Token: 0x17003541 RID: 13633
		// (get) Token: 0x0600BC88 RID: 48264 RVA: 0x001FC08E File Offset: 0x001FA28E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournTakeExpRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003542 RID: 13634
		// (get) Token: 0x0600BC89 RID: 48265 RVA: 0x001FC0A0 File Offset: 0x001FA2A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournTakeExpRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600BC8A RID: 48266 RVA: 0x001FC0A7 File Offset: 0x001FA2A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournTakeExpRewardScRsp()
		{
		}

		// Token: 0x0600BC8B RID: 48267 RVA: 0x001FC0BC File Offset: 0x001FA2BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournTakeExpRewardScRsp(RogueTournTakeExpRewardScRsp other) : this()
		{
			this.takenLevelRewards_ = other.takenLevelRewards_.Clone();
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.exp_ = other.exp_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BC8C RID: 48268 RVA: 0x001FC125 File Offset: 0x001FA325
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournTakeExpRewardScRsp Clone()
		{
			return new RogueTournTakeExpRewardScRsp(this);
		}

		// Token: 0x17003543 RID: 13635
		// (get) Token: 0x0600BC8D RID: 48269 RVA: 0x001FC12D File Offset: 0x001FA32D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TakenLevelRewards
		{
			get
			{
				return this.takenLevelRewards_;
			}
		}

		// Token: 0x17003544 RID: 13636
		// (get) Token: 0x0600BC8E RID: 48270 RVA: 0x001FC135 File Offset: 0x001FA335
		// (set) Token: 0x0600BC8F RID: 48271 RVA: 0x001FC13D File Offset: 0x001FA33D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003545 RID: 13637
		// (get) Token: 0x0600BC90 RID: 48272 RVA: 0x001FC146 File Offset: 0x001FA346
		// (set) Token: 0x0600BC91 RID: 48273 RVA: 0x001FC14E File Offset: 0x001FA34E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003546 RID: 13638
		// (get) Token: 0x0600BC92 RID: 48274 RVA: 0x001FC157 File Offset: 0x001FA357
		// (set) Token: 0x0600BC93 RID: 48275 RVA: 0x001FC15F File Offset: 0x001FA35F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x0600BC94 RID: 48276 RVA: 0x001FC168 File Offset: 0x001FA368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournTakeExpRewardScRsp);
		}

		// Token: 0x0600BC95 RID: 48277 RVA: 0x001FC178 File Offset: 0x001FA378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournTakeExpRewardScRsp other)
		{
			return other != null && (other == this || (this.takenLevelRewards_.Equals(other.takenLevelRewards_) && object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && this.Exp == other.Exp && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BC96 RID: 48278 RVA: 0x001FC1EC File Offset: 0x001FA3EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.takenLevelRewards_.GetHashCode();
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BC97 RID: 48279 RVA: 0x001FC268 File Offset: 0x001FA468
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BC98 RID: 48280 RVA: 0x001FC270 File Offset: 0x001FA470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BC99 RID: 48281 RVA: 0x001FC27C File Offset: 0x001FA47C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Exp != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Exp);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.Reward);
			}
			this.takenLevelRewards_.WriteTo(ref output, RogueTournTakeExpRewardScRsp._repeated_takenLevelRewards_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BC9A RID: 48282 RVA: 0x001FC304 File Offset: 0x001FA504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.takenLevelRewards_.CalculateSize(RogueTournTakeExpRewardScRsp._repeated_takenLevelRewards_codec);
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BC9B RID: 48283 RVA: 0x001FC388 File Offset: 0x001FA588
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournTakeExpRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.takenLevelRewards_.Add(other.takenLevelRewards_);
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BC9C RID: 48284 RVA: 0x001FC415 File Offset: 0x001FA615
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BC9D RID: 48285 RVA: 0x001FC420 File Offset: 0x001FA620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 16U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 74U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 112U || num == 114U)
					{
						this.takenLevelRewards_.AddEntriesFrom(ref input, RogueTournTakeExpRewardScRsp._repeated_takenLevelRewards_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004BE7 RID: 19431
		private static readonly MessageParser<RogueTournTakeExpRewardScRsp> _parser = new MessageParser<RogueTournTakeExpRewardScRsp>(() => new RogueTournTakeExpRewardScRsp());

		// Token: 0x04004BE8 RID: 19432
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004BE9 RID: 19433
		public const int TakenLevelRewardsFieldNumber = 14;

		// Token: 0x04004BEA RID: 19434
		private static readonly FieldCodec<uint> _repeated_takenLevelRewards_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x04004BEB RID: 19435
		private readonly RepeatedField<uint> takenLevelRewards_ = new RepeatedField<uint>();

		// Token: 0x04004BEC RID: 19436
		public const int RewardFieldNumber = 9;

		// Token: 0x04004BED RID: 19437
		private ItemList reward_;

		// Token: 0x04004BEE RID: 19438
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04004BEF RID: 19439
		private uint retcode_;

		// Token: 0x04004BF0 RID: 19440
		public const int ExpFieldNumber = 2;

		// Token: 0x04004BF1 RID: 19441
		private uint exp_;
	}
}
